package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 订单 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "订单")
@Table ( name ="OrderForm")
public class OrderForm  implements Serializable {

	private static final long serialVersionUID =  1671875806325041367L;

	@ApiModelProperty(value = "订单ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Order_Form_Id" )
	private Long orderFormId;

	@ApiModelProperty(value = "订单金额")
   	@Column(name = "Amount" )
	private Long amount;

	@ApiModelProperty(value = "订单数量")
   	@Column(name = "Count" )
	private Long count;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	@ApiModelProperty(value = "是否支付")
   	@Column(name = "IsPay" )
	private Long isPay;

	@ApiModelProperty(value = "微信ID")
   	@Column(name = "OpenId" )
	private String openId;

	@ApiModelProperty(value = "姓名")
   	@Column(name = "name" )
	private String name;

	@ApiModelProperty(value = "支付ID")
   	@Column(name = "WechatPayGuid" )
	private String wechatPayGuid;

	/**
	 * 手机
	 */
	@ApiModelProperty(value = "手机")
   	@Column(name = "Phone" )
	private String phone;

	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像")
   	@Column(name = "Avatar" )
	private String avatar;

	/**
	 * 票类型
	 */
	@ApiModelProperty(value = "票类型")
   	@Column(name = "typeName" )
	private String typeName;

	/**
	 * 票种ID
	 */
	@ApiModelProperty(value = "票种ID")
   	@Column(name = "Ticket_Type_Id" )
	private Long ticketTypeId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "projectId" )
	private String projectId;

	public String getProjectId() {
		return this.projectId;
	}

	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getAvatar() {
		return this.avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Long getOrderFormId() {
		return this.orderFormId;
	}

	public Long getTicketTypeId() {
		return this.ticketTypeId;
	}

	public void setTicketTypeId(Long ticketTypeId) {
		this.ticketTypeId = ticketTypeId;
	}

	public void setOrderFormId(Long orderFormId) {
		this.orderFormId = orderFormId;
	}

	public Long getAmount() {
		return this.amount;
	}

	public void setAmount(Long amount) {
		this.amount = amount;
	}

	public Long getCount() {
		return this.count;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getIsPay() {
		return this.isPay;
	}

	public void setIsPay(Long isPay) {
		this.isPay = isPay;
	}

	public String getOpenId() {
		return this.openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getWechatPayGuid() {
		return this.wechatPayGuid;
	}

	public void setWechatPayGuid(String wechatPayGuid) {
		this.wechatPayGuid = wechatPayGuid;
	}

	@Override
	public String toString() {
		return "{" +
					"orderFormId='" + orderFormId + '\'' +
					"amount='" + amount + '\'' +
					"typeName='" + typeName + '\'' +
					"phone='" + phone + '\'' +
					"avatar='" + avatar + '\'' +
					"name='" + name + '\'' +
					"ticketTypeId='" + ticketTypeId + '\'' +
					"count='" + count + '\'' +
					"createDate='" + createDate + '\'' +
					"isPay='" + isPay + '\'' +
					"openId='" + openId + '\'' +
					"name='" + name + '\'' +
					"wechatPayGuid='" + wechatPayGuid + '\'' +
				'}';
	}

}
